//
//  ViewHeader.h
//  NewPro
//
//  Created by 何荧红 on 2018/10/3.
//  Copyright © 2018 何荧红. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AddressModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface ViewHeader : UIView


@property (nonatomic, copy) void (^ButtonClik)(void);
@property (nonatomic, copy) void (^ofsetBlock)(CGFloat);
- (void)scorllViewWithOffset:(CGFloat)ofx;
- (instancetype)initWithString:(NSString *)string;//默认头不带返回
- (instancetype)initWithMyCenter:(NSString *)string;//个人中心头
- (instancetype)initWithHeaderSearch;//合伙人头
- (instancetype)initWithPOSApplyHeader:(NSString *)String;//机具申领头
- (instancetype)initWithDefaultString:(NSString *)string;//默认头，带返回
- (instancetype)initWithHomeTopString:(NSString *)string;//首页活动头
- (instancetype)initWithImgView;//POS详情图片页面
- (instancetype)initWithAdressView:(NSInteger)type With:(NSDictionary *)dic;//去收货地址
- (void)CleanAdressView:(NSInteger)type With:(AddressModel *)dic;//更改UI
- (instancetype)initWithPosDetailViewWith:(NSDictionary *)dic;//确认订单商品详情
- (instancetype)initWithBusinessView;//商户管理二头
//0、未激活 1、审核中或者审核失败 2、已开通或者已激活 3、已达标 4、已划拨 5、可回拨 6、我回拨的 7、别人回拨给我的
- (instancetype)initWithPostListHeader;//POS列表二头
- (void)CleanPostlistSecView:(NSInteger)type;
- (instancetype)initWithTraditionSecView:(NSInteger)type;//传统认证二头,以及实名认证二头
- (instancetype)initWithMyHistoryProfitSecView;//历史收益二头
- (instancetype)initWithMyHistoryHeaderView;//历史收益tab头
- (instancetype)initWithPromote;//推广头
- (instancetype)initWithScrollerHeaderView:(NSInteger)type;//滚动的头部，二头
- (instancetype)initWithLoginSecView;//登录二头
- (instancetype)initWithMyWalletString:(NSString *)string;//我的钱包
- (instancetype)initWithDefaultPos:(NSString *)string;//pos头
- (instancetype)initWithBusinessChoose;
- (instancetype)initWithAchievementHeader;//业绩新头
@property (nonatomic, copy) void (^HeaderRightBlock)(void);
- (instancetype)initWithBackPOSHeader:(NSString *)string Sec:(NSString *)SecStr;//回拨记录头
@property (nonatomic, assign) BOOL isPiliang;//是否批量展示
@property (nonatomic, assign) BOOL isTimesort;//按时间排序
@property (nonatomic, assign) BOOL isMoneysort;//按金额排序
@property (nonatomic, copy) void (^piliangBlock)(BOOL);
@property (nonatomic, copy) void (^timesortBlock)(BOOL);
@property (nonatomic, copy) void (^moneysortBlock)(BOOL);
@property (nonatomic, assign) CGFloat lineContx;
@property (nonatomic, assign) NSInteger BackPOSType;
@property (nonatomic, copy) void (^BackTypeBlock)(NSInteger);
@property (nonatomic, strong) UILabel *AchieveTimelab;
@property (nonatomic, strong) UILabel *AchieveFTitle;
@property (nonatomic, strong) UILabel *AchieveSTitle;
@property (nonatomic, copy) void (^AchieveTimeSearchBlock)(void);
@property (nonatomic, copy) void (^AchievetoTimeBlock)(void);
- (instancetype)initWithAchievementDetailHeader;
- (instancetype)initWithKnowMore;//了解更多头
@property (nonatomic, copy) void (^SearchBlock)(NSString *);
@property (nonatomic, copy) void (^PosAddBlock)(void);
@property (nonatomic, copy) void (^accountBlock)(NSString *);
@property (nonatomic, copy) void (^pwdBlock)(NSString *);
- (void)ScrollerlineViewWith:(CGFloat)ofset;
@property (nonatomic, copy) void (^ScrollerOfsetBlock)(CGFloat);
@property (nonatomic, strong) UITextField *numberlab;//输入数量
@property (nonatomic, assign) NSInteger TraditionType;//按步骤点亮
@property (nonatomic, strong) UIImageView *step1img;
@property (nonatomic, strong) UILabel *step1lab;

@property (nonatomic, strong) UIView *stepline2;
@property (nonatomic, strong) UIImageView *step2img;
@property (nonatomic, strong) UILabel *step2lab;

@property (nonatomic, strong) UIView *stepline3;
@property (nonatomic, strong) UIImageView *step3img;
@property (nonatomic, strong) UILabel *step3lab;

@property (nonatomic, strong) UIView *stepline4;
@property (nonatomic, strong) UIImageView *step4img;
@property (nonatomic, strong) UILabel *step4lab;
@property (nonatomic, strong) NSDictionary *Invitationdic;
@property (nonatomic, copy) NSString *AccumulativemoneytString;

@property (nonatomic, copy) NSString *monthmoney;//当月累计收益

@property (nonatomic, copy) NSString *PromotetimeStr;

@property (nonatomic, copy) void (^toAdressBlock)(void);
@property (nonatomic, copy) void (^viewpushBlock)(NSString *);
@property (nonatomic, copy) void (^viewpullBlock)(NSString *);
- (instancetype)initWithInvitationSecView;//邀请合伙人二头
- (instancetype)initWithMyProfit;//我的收益头
- (instancetype)initWithMyProfitTableHeader:(NSInteger)type;//我的收益tab头
- (instancetype)initWithYiCHeader;
@property (nonatomic, copy) NSString *YiCHeader;

- (instancetype)initWithtTitle:(NSString *)string andRirhtBtn:(NSString *)img;//带右按钮的头

@property (nonatomic, copy) void (^rightBtnBlock)(UIButton *);

@property (nonatomic, copy) void (^onBackBlock)(void);

- (instancetype)initWithtTitle:(NSString *)string andRirhtLa:(NSString *)str;//带右label的头

@end

NS_ASSUME_NONNULL_END
